package net.aiion.weave.impl.xml.events;

import net.aiion.weave.spi.xml.XmlQualifiedName;
import net.aiion.weave.spi.xml.events.ElementEndXmlEvent;

public class ElementEndXmlEventImpl extends XmlEventImpl implements ElementEndXmlEvent
{
    private final XmlQualifiedName xmlQualifiedName;

    public ElementEndXmlEventImpl(final XmlQualifiedName anXmlQualifiedName) {
        xmlQualifiedName = anXmlQualifiedName;
    }

    @Override
    public int getType() {
        return END_ELEMENT;
    }

    @Override
    public XmlQualifiedName getName() {
        return xmlQualifiedName;
    }

    @Override
    public String toString() {
        final StringBuilder builder = new StringBuilder();
        builder.append("XmlEndElementImpl[xmlQualifiedName=");
        builder.append(xmlQualifiedName);
        builder.append("]");
        return builder.toString();
    }
}
